import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '../chuancan/home.vue'
import news from '../chuancan/news.vue'
Vue.use(VueRouter)

const routes = [
   {
    path: '/',
    name: 'home',
    component: home
     },
     {
      path: '/news',
      name: 'news',
      component: news
       },
]

const router = new VueRouter({
  routes
})

export default router
